package com.lin.demo.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lin.demo.service.UserService;
import com.lin.demo.entity.User;
import com.lin.demo.mapper.UserMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zimingl
 * @Date 2022/9/25 19:37
 * @Description: TODO
 */
@Service
public class UserServiceImpl  extends ServiceImpl<UserMapper, User> implements UserService {

    public void getList(){
        // 方法三
        List<User> users = baseMapper.selectList(null);
        Page<Object> objectPage = new Page<>(users.size(), users.size());
    }

}
